﻿using Microsoft.Practices.ServiceLocation;
using Mimi.Locator;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace Mimi
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        /// <summary>
        /// Instance of App
        /// </summary>
        public static App Application
        {
            get;
            private set;
        }

        public App()
        {
            //Application instance
            Application = this;
        }

        public static T GetInstance<T>()
        {
            return ServiceLocator.Current.GetInstance<T>();
        }
    }
}
